home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / misc / lslide.sty < prev    next >
Text File  |  1993-01-11  |  21KB  |  708 lines

  1. %% Save file as: LSLIDE.STY                     Source: FILESERV@SHSU.BITNET
  2. % lslide.sty - version 2.0.1 (April 1992)
  3. % by Young U. Ryu
  4. %
  5. % o  There is a sample file in the end of the commented area.
  6. %    LaTeX (or AmSLaTeX) it at least twice and print.
  7. %                                    ^^^^^
  8. % The remainder of the original header information and example file are
  9. % in the file STY.LSLIDE_TEX on FILESERV/Niord.
  10. %
  11. % Noted modifications by Keith Farkas <farkas@eecg.toronto.edu> posted
  12. % to comp.text.tex on 21 Apr 92 15:43:52 GMT:
  13. % I have added a new vertical centering option to the slide style file
  14. % writen by Yong Ryu. The new option is \vertgroup and is like \vertcenter
  15. % with the exception that \vspace{2em} is placed after \subsection
  16. % rather than \vspace{\vfill}.
  17.  
  18. \typeout{Presentation Slide Style File for LaTeX/AmSLaTeX, version 2.0.1}
  19. \typeout{by Young. U. Ryu - March 1992; modified by Keith Farkas - April 1992}
  20.  
  21. \def\landscape{%
  22.     \sloppy
  23.     \textwidth 8.8in
  24.     \textheight 6in
  25.     \topmargin -.6in
  26.     \oddsidemargin -.18in
  27.     \evensidemargin\oddsidemargin}
  28.  
  29. \def\portrait{%
  30.     \sloppy
  31.     \textwidth 6in
  32.     \textheight 8.8in
  33.     \topmargin -.65in
  34.     \oddsidemargin -.3in
  35.     \evensidemargin\oddsidemargin}
  36.  
  37. %
  38. % Frame for the whole page
  39. % \@my@box@frame{thinkness}{hspace}{vspace}{...}
  40. %
  41. \newdimen \@tempdimc
  42. \newdimen \@tempdimd
  43.  
  44. \def\@my@box@frame#1#2#3#4{\vbox{%
  45.     \setbox\@tempboxa\hbox{#4}%
  46.     \@tempdima#3
  47.     \advance\@tempdima #1 \advance\@tempdima \dp\@tempboxa
  48.     \hbox{\lower \@tempdima%
  49.           \hbox{\vbox{\hrule depth0pt height #1%
  50.                       \hbox{\vrule depth0pt width #1%
  51.                     \hskip#2%
  52.                 \vbox{\vskip#3 \box\@tempboxa\vskip#3}%
  53.                 \hskip#2%
  54.                 \vrule depth0pt width #1}
  55.               \hrule depth0pt height #1}}}}}
  56.  
  57. %
  58. % Shadow Frame for the whole page:
  59. % \@my@shadow@box@frame{frame thinkness}{shade thickness}{hspace}{vspace}{...}
  60. %
  61.  
  62. \def\@my@shadow@box@frame#1#2#3#4#5{\vbox{%
  63.     \setbox\@tempboxa\hbox{#5}%
  64.     \@tempdima#4
  65.     \advance\@tempdima #1 \advance\@tempdima \dp\@tempboxa
  66.     \setbox\@tempboxa%
  67.      \hbox{\lower \@tempdima%
  68.           \hbox{\vbox{\hrule depth0pt height #1%
  69.                       \hbox{\vrule depth0pt width #1%
  70.                     \hskip#3%
  71.                 \vbox{\vskip#4 \box\@tempboxa\vskip#4}%
  72.                 \hskip#3%
  73.                 \vrule depth0pt width #1}
  74.               \hrule depth0pt height #1}}}%
  75.      \@tempdimc\ht\@tempboxa \advance\@tempdimc-#2
  76.      \advance\@tempdimc\@tempdima
  77.      \@tempdimd\wd\@tempboxa
  78.      \hbox{\box\@tempboxa\relax%
  79.            \lower\@tempdima\hbox{\vrule width#2 height\@tempdimc depth0pt}}
  80.     \nointerlineskip\moveright#2
  81.     \vbox{\hrule height#2 width\@tempdimd depth0pt}}}
  82.  
  83. %
  84. % Oval frame: by Tomoki Shiratori
  85. % \@my@oval@frame{thickness}{hspace}{vspace}{...}
  86. %     thickness = \thinlines or \thicklines
  87.  
  88. \def\@my@oval@frame#1#2#3#4{\vbox{%
  89.    #1%
  90.    \setbox0 = \vbox{%
  91.         \vskip#3\relax
  92.         #4\relax
  93.         \vskip#3\relax}%
  94.    \@tempdimc \ifdim \ht0 >\wd0 \wd0\else \ht0 \fi%
  95.    \divide\@tempdimc 10\relax
  96.    \@getcirc{\@tempdimc}%
  97.    \@tempdimc\ht0%
  98.    \advance\@tempdimc -\@tempdima%
  99.    \advance\@tempdimc 2\@wholewidth%
  100.    \@tempdimd .5\@tempdima \advance\@tempdimd -\@wholewidth%
  101.    \setbox0 = \hbox{%
  102.        \raise\@tempdimd\hbox{\vrule height\@tempdimc width\@wholewidth}%
  103.        \hskip#2\relax
  104.        \box0\relax
  105.        \hskip#2\relax
  106.        \raise\@tempdimd\hbox{\vrule height\@tempdimc width\@wholewidth}}%
  107.    \@tempdimd\wd0 \@tempdimc\@tempdimd%
  108.    \advance\@tempdimc -\@tempdima%
  109.    \vskip -.5\@tempdima \vskip\@wholewidth%
  110.    \hbox to\@tempdimd{%
  111.        \@tempcntb\@tempcnta \advance\@tempcntb 3\relax
  112.        {\@circlefnt \char\@tempcntb\kern -.5\@tempdima}%
  113.        \vbox{\hrule height\@wholewidth width\@tempdimc}%
  114.        {\@circlefnt \kern .5\@tempdima \kern -\@wholewidth \char\@tempcnta%
  115.         \kern -\@tempdima \kern\@wholewidth}}%
  116.    \vskip -.5\@tempdima%
  117.    \box0\relax
  118.    \vskip -.5\@tempdima%
  119.    \hbox to\@tempdimd{%
  120.        \@tempcntb\@tempcnta \advance\@tempcntb\tw@\relax
  121.        {\@circlefnt \char\@tempcntb\kern -.5\@tempdima}%
  122.        \vbox{\hrule height\@wholewidth width\@tempdimc}%
  123.        {\advance\@tempcntb\m@ne%
  124.         \@circlefnt \kern .5\@tempdima \kern -\@wholewidth \char\@tempcntb%
  125.         \kern -\@tempdima \kern \@wholewidth}}%
  126.    \vskip -.5\@tempdima \vskip\@wholewidth}}%
  127.  
  128. %
  129. % modification of \@outputpage (from latex.tex)
  130. %
  131. \def\@outputpage{\begingroup\catcode`\ =10
  132.      \let\-\@dischyph \let\'\@acci \let\`\@accii \let\=\@acciii
  133.     \if@specialpage
  134.      \global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
  135.      \if@twoside
  136.        \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
  137.             \let\@themargin\oddsidemargin
  138.           \else \let\@thehead\@evenhead
  139.           \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
  140.      \fi\fi
  141.      \shipout
  142.      \vbox{\normalsize \baselineskip\z@ \lineskip\z@
  143.            \let\par\@@par %% 15 Sep 87
  144.            \vskip \topmargin \moveright\@themargin
  145.        \my@frame{%
  146.            \vbox{\setbox\@tempboxa
  147.                    \vbox to\headheight{\vfil \hbox to\textwidth
  148.                                        {\let\label\@gobble \let\index\@gobble
  149.                                          \@thehead}} %% 22 Feb 87
  150.                  \dp\@tempboxa\z@
  151.                  \box\@tempboxa
  152.                  \vskip \headsep
  153.                  \box\@outputbox
  154.                  \baselineskip\footskip
  155.                  \hbox to\textwidth{\let\label\@gobble
  156.                            \let\index\@gobble  %% 22 Feb 87
  157.                            \@thefoot}}%
  158.            }% end of my@frame
  159.        }%
  160.            \global\@colht\textheight
  161.            \endgroup\stepcounter{page}\let\firstmark\botmark}
  162.  
  163. %
  164. % Heading and Footing
  165. %  In part, from fancyheading.sty
  166. %
  167.  
  168. \def\lhead#1{\gdef\@elhead{#1}\gdef\@olhead{#1}}
  169. \def\chead#1{\gdef\@echead{#1}\gdef\@ochead{#1}}
  170. \def\rhead#1{\gdef\@erhead{#1}\gdef\@orhead{#1}}
  171.  
  172. \def\lfoot#1{\gdef\@elfoot{#1}\gdef\@olfoot{#1}}
  173. \def\cfoot#1{\gdef\@ecfoot{#1}\gdef\@ocfoot{#1}}
  174. \def\rfoot#1{\gdef\@erfoot{#1}\gdef\@orfoot{#1}}
  175.  
  176. \def\@slidehead#1#2#3#4#5{#1\hbox to\textwidth%
  177.     {\vbox{\hbox{\rlap{\parbox[b]{\textwidth}%
  178.     {\raggedright#2\strut}}\hfill\parbox[b]{\textwidth}%
  179.     {\centering#3\strut}\hfill\llap{\parbox[b]{\textwidth}%
  180.     {\raggedleft#4\strut}}}}}#5}
  181.  
  182. \def\@slidefoot#1#2#3#4#5{#1\hbox to\textwidth%
  183.     {\vbox{\hbox{\rlap{\parbox[t]{\textwidth}%
  184.     {\raggedright#2\strut}}\hfill\parbox[t]{\textwidth}%
  185.     {\centering#3\strut}\hfill\llap{\parbox[t]{\textwidth}%
  186.     {\raggedleft#4\strut}}}}}#5}
  187.  
  188. \def\ps@slide{%
  189.     \def\@oddhead{\@slidehead\relax\@olhead\@ochead\@orhead\hss}%
  190.     \def\@oddfoot{\@slidefoot\relax\@olfoot\@ocfoot\@orfoot\hss}%
  191.     \def\@evenhead{\@slidehead\hss\@elhead\@echead\@erhead\relax}%
  192.     \def\@evenfoot{\@slidefoot\hss\@elfoot\@ecfoot\@erfoot\relax}%
  193.     }
  194.  
  195. \def\ps@empty{%
  196.     \def\@oddhead{\@slidehead\relax\space\space\space\hss}%
  197.     \def\@oddfoot{\@slidefoot\relax\space\space\space\hss}%
  198.     \def\@evenhead{\@slidehead\hss\space\space\space\relax}%
  199.     \def\@evenfoot{\@slidefoot\hss\space\space\space\relax}%
  200.     }
  201.  
  202. %
  203. % by modifying \fbox in latex.tex
  204. % \Fbox{box sep}{box rule width/height}{...}
  205. %
  206. \def\Fbox#1#2#3{\@my@box@frame{#2}{#1}{#1}{#3}}
  207.  
  208. %
  209. % Places a shadow box
  210. % \SFbox{box sep}{box rule width/height}{shade rule width/height}{...}
  211. %
  212. \def\SFbox#1#2#3#4{\@my@shadow@box@frame{#2}{#3}{#1}{#1}{#4}}
  213.  
  214. %
  215. % by modifying \fbox in latex.tex
  216. % \Underline & \Underbar
  217. %
  218. \def\Underline#1{%
  219.     \leavevmode%
  220.     \setbox\@tempboxa\hbox{#1}%
  221.     \@tempdima1pt
  222.     \advance\@tempdima 3pt
  223.     \advance\@tempdima \dp\@tempboxa
  224.     \hbox{\lower \@tempdima%
  225.           \hbox{\vbox{\hbox{\vbox{\box\@tempboxa\vskip3pt}}%
  226.                       \hrule height1pt}}}}
  227.  
  228. % from plain.tex
  229. \def\Underbar#1{$\setbox\z@\hbox{#1}\dp\z@\z@
  230.   \m@th \Underline{\box\z@}$}
  231.  
  232. %
  233. % Things to be entered in texts
  234. %
  235. \def\title{\@ifnextchar[{\@@Title}{\@Title}}
  236. \def\@Title#1{\def\slide@title{\uppercase{#1}}
  237.               \def\slidetitle{#1}}
  238. \def\@@Title[#1]#2{\def\slide@title{\uppercase{#2}}
  239.               \def\slidetitle{#1}}
  240. \def\slide@title{\hspace*{1pt}}
  241. \def\slidetitle{\hspace*{1pt}}
  242.  
  243. \def\author{\@ifnextchar[{\@@Author}{\@Author}}
  244. \def\@@Author[#1]#2{\def\slide@author{#2}%
  245.                     \def\slideauthor{#1}}
  246. \def\@Author#1{\def\slide@author{#1}
  247.                \def\slideauthor{#1}}
  248. \def\slide@author{\hspace*{1pt}}
  249. \def\slideauthor{\hspace*{1pt}}
  250.  
  251. \def\organization#1{\def\authororga{#1}}
  252. \def\authororga{\hspace*{1pt}}
  253.  
  254. \def\date#1{\def\slidedate{#1}}
  255. \def\slidedate{\today}
  256.  
  257. %
  258. % section and subsection
  259. %
  260. \newcounter{sec@ctr}
  261. \setcounter{sec@ctr}{1}
  262.  
  263. \def\section{\@ifnextchar[{\@@Section}{\@Section}}
  264.  
  265. \def\@Section#1{\clearpage
  266.                \thispagestyle{empty}
  267.                \vspace*{\fill}
  268.            \begin{center}
  269.            \Hugesize\uppercase{#1}
  270.            \end{center}
  271.            \vspace*{\fill}
  272.            \def\sectiontitle{#1}
  273.            \Add@@secitem{toc}{\thesec@ctr}{#1}
  274.            \addtocounter{sec@ctr}{1}
  275.            \clearpage}
  276.  
  277. \def\@@Section[#1]#2{\clearpage
  278.                \thispagestyle{empty}
  279.                \vspace*{\fill}
  280.            \begin{center}
  281.            \Hugesize\uppercase{#2}
  282.            \end{center}
  283.            \vspace*{\fill}
  284.            \def\sectiontitle{#1}
  285.            \Add@@secitem{toc}{\thesec@ctr}{#1}
  286.            \addtocounter{sec@ctr}{1}
  287.            \clearpage}
  288.  
  289. \def\sectiontitle{\relax}
  290.  
  291. \def\Add@@secitem#1#2#3{\if@filesw \begingroup
  292. \let\label\@gobble \let\index\@gobble \let\glossary\@gobble
  293. \def\protect##1{\string\string\string##1\string\space
  294.    \space}\@temptokena{\thepage}%
  295. \edef\@tempa{\write \@auxout{\string\@writefile{#1}{\protect
  296.      \secitem{#2}{#3}{\the\@temptokena}}}}\@tempa
  297.    \if@nobreak \ifvmode\nobreak\fi\fi\endgroup\fi}
  298.  
  299. \def\subsection#1{\subsec@begin@vspace
  300.                   \addtocounter{sec@ctr}{-1}
  301.                   \Add@@subsecitem{toc}{\thesec@ctr}{#1}
  302.           \addtocounter{sec@ctr}{1}
  303.           \hspace*{\fill}
  304.           \sub@section@frame{\Largesize #1}
  305.           \hspace*{\fill}
  306.           \subsec@end@vspace}
  307.  
  308. \def\Add@@subsecitem#1#2#3{\if@filesw \begingroup
  309. \let\label\@gobble \let\index\@gobble \let\glossary\@gobble
  310. \def\protect##1{\string\string\string##1\string\space
  311.    \space}\@temptokena{\thepage}%
  312. \edef\@tempa{\write \@auxout{\string\@writefile{#1}{\protect
  313.      \subsecitem{#2}{#3}{\the\@temptokena}}}}\@tempa
  314.    \if@nobreak \ifvmode\nobreak\fi\fi\endgroup\fi}
  315.  
  316. %
  317. % titlepage
  318. %
  319. \def\titlepage{\thispagestyle{empty}
  320.     \vspace*{\fill}
  321.     \begin{center}
  322.     \Hugesize \slide@title \\ [2em]
  323.     \Normalsize\slide@author \\ [.5em]
  324.     \Normalsize\authororga \\ [1em]
  325.     \Normalsize\slidedate
  326.     \end{center}
  327.     \vspace*{\fill}
  328.     \setcounter{page}{0}
  329.     \clearpage}
  330.  
  331. %
  332. % tables of contents
  333. %
  334. \def\contentsname{CONTENTS}
  335.  
  336. \newcounter{@@@dum@@@}
  337. \setcounter{@@@dum@@@}{0}
  338.  
  339. \def\slidecontents{\@ifnextchar*{\@@slidecontents}{\@slidecontents}}
  340.  
  341. \def\@slidecontents{\openin1 \jobname.toc \ifeof1 \typeout
  342.            {No file \jobname.toc}\else\closein1\relax
  343.        \def\secitem##1##2##3{%
  344.            \ifnum\value{@@@dum@@@}=0%
  345.               \setcounter{@@@dum@@@}{1}%
  346.               \begin{citemize}\contsize\fi
  347.                \item[$\bullet$] ##2 \dotfill\ ##3\ignorespaces}
  348.        \def\subsecitem##1##2##3{\ignorespaces}
  349.        \clearpage
  350.        \thispagestyle{empty}
  351.        \addtocounter{page}{-1}
  352.        \subsec@begin@vspace
  353.            \hspace*{\fill}
  354.            \sub@section@frame{\Largesize\contentsname}
  355.        \hspace*{\fill}
  356.        \subsec@end@vspace
  357.            \input{\jobname.toc}
  358.        \ifnum\value{@@@dum@@@}=1%
  359.           \setcounter{@@@dum@@@}{0}%
  360.           \end{citemize}\fi
  361.        \vspace*{\fill}
  362.        \clearpage
  363.        \fi}
  364.  
  365. \def\@@slidecontents*{\openin1 \jobname.toc \ifeof1 \typeout
  366.            {No file \jobname.toc}\else\closein1\relax
  367.        \def\secitem##1##2##3{%
  368.            \ifnum\value{@@@dum@@@}=0%
  369.               \setcounter{@@@dum@@@}{1}%
  370.               \begin{citemize}\contsize\fi
  371.               \item[$\bullet$] ##2 \hspace{\fill}}
  372.        \def\subsecitem##1##2##3{\ignorespaces}
  373.        \clearpage
  374.        \thispagestyle{empty}
  375.        \addtocounter{page}{-1}
  376.        \subsec@begin@vspace
  377.        \hspace*{\fill}
  378.            \sub@section@frame{\Largesize\contentsname}
  379.        \hspace*{\fill}
  380.        \subsec@end@vspace
  381.            \input{\jobname.toc}
  382.        \ifnum\value{@@@dum@@@}=1%
  383.           \setcounter{@@@dum@@@}{0}%
  384.           \end{citemize}\fi
  385.        \vspace*{\fill}
  386.        \clearpage
  387.        \fi}
  388.  
  389. \def\sectioncontents{\@ifnextchar*{\@@sectioncontents}{\@sectioncontents}}
  390.  
  391. \newcounter{@@@dummy@@@}
  392. \setcounter{@@@dummy@@@}{0}
  393.  
  394. \@ifundefined{checkmark}%
  395.     {\def\mycheckmark{\surd}}%
  396.     {\def\mycheckmark{\checkmark}}
  397.  
  398. \def\mysecpointer{\Rightarrow}
  399.  
  400. \def\@sectioncontents{\openin1 \jobname.toc \ifeof1 \typeout
  401.            {No file \jobname.toc}\else\closein1\relax
  402.        \def\secitem##1##2##3{%
  403.            \ifnum\value{@@@dum@@@}=0%
  404.               \setcounter{@@@dum@@@}{1}%
  405.               \begin{citemize}\contsize\fi
  406.            \ifnum\value{@@@dummy@@@}=1%
  407.               \setcounter{@@@dummy@@@}{0}%
  408.               \end{ccitemize}\fi
  409.            \item[\ifnum\value{sec@ctr}>##1$\mycheckmark\;\bullet$%
  410.                  \else\ifnum\value{sec@ctr}=##1$\mysecpointer\bullet$%
  411.                  \else$\bullet$\fi\fi] ##2 \dotfill\ ##3\ignorespaces}
  412.            \def\subsecitem##1##2##3{%
  413.            \ifnum\value{sec@ctr}=##1%
  414.               \ifnum\value{@@@dummy@@@}=0
  415.                  \setcounter{@@@dummy@@@}{1}
  416.                  \begin{ccitemize}\contsizesize\fi
  417.               \item[$\bullet$] ##2 \hspace*{\fill}\fi}
  418.        \clearpage
  419.        \thispagestyle{empty}
  420.        \addtocounter{page}{-1}
  421.        \subsec@begin@vspace
  422.            \hspace*{\fill}
  423.            \sub@section@frame{\Largesize\contentsname}
  424.        \hspace*{\fill}
  425.        \subsec@end@vspace
  426.            \input{\jobname.toc}
  427.        \ifnum\value{@@@dummy@@@}=1%
  428.            \setcounter{@@@dummy@@@}{0}%
  429.           \end{ccitemize}\fi
  430.        \ifnum\value{@@@dum@@@}=1%
  431.           \setcounter{@@@dum@@@}{0}%
  432.           \end{citemize}\fi
  433.        \vspace*{\fill}
  434.        \clearpage
  435.        \fi}
  436.  
  437. \def\@@sectioncontents*{\openin1 \jobname.toc \ifeof1 \typeout
  438.            {No file \jobname.toc}\else\closein1\relax
  439.        \def\secitem##1##2##3{%
  440.            \ifnum\value{@@@dum@@@}=0%
  441.               \setcounter{@@@dum@@@}{1}%
  442.               \begin{citemize}\contsize\fi
  443.            \ifnum\value{@@@dummy@@@}=1%
  444.               \setcounter{@@@dummy@@@}{0}%
  445.               \end{ccitemize}\fi
  446.            \item[\ifnum\value{sec@ctr}>##1$\mycheckmark\;\bullet$%
  447.                  \else\ifnum\value{sec@ctr}=##1$\mysecpointer\bullet$%
  448.                  \else$\bullet$\fi\fi] ##2 \hspace{\fill}}
  449.            \def\subsecitem##1##2##3{%
  450.            \ifnum\value{sec@ctr}=##1%
  451.               \ifnum\value{@@@dummy@@@}=0
  452.                  \setcounter{@@@dummy@@@}{1}
  453.                  \begin{ccitemize}\contsizesize\fi
  454.               \item[$\bullet$] ##2 \hspace{\fill}\fi}
  455.        \clearpage
  456.        \thispagestyle{empty}
  457.        \addtocounter{page}{-1}
  458.        \subsec@begin@vspace
  459.            \hspace*{\fill}
  460.            \sub@section@frame{\Largesize\contentsname}
  461.        \hspace*{\fill}
  462.        \subsec@end@vspace
  463.            \input{\jobname.toc}
  464.        \ifnum\value{@@@dummy@@@}=1%
  465.            \setcounter{@@@dummy@@@}{0}%
  466.            \end{ccitemize}\fi
  467.            \ifnum\value{@@@dum@@@}=1%
  468.            \setcounter{@@@dum@@@}{0}%
  469.            \end{citemize}\fi
  470.        \clearpage
  471.        \vspace*{\fill}
  472.        \fi}
  473.  
  474. \def\citemize{\list{\relax}%
  475.     {\leftmargin=2.5em
  476.      \rightmargin=.5em
  477.      \labelwidth=2em
  478.      \labelsep=.5em
  479.      \def\makelabel##1{\hss\llap{##1}}}}
  480. \let\endcitemize =\endlist
  481.  
  482. \def\ccitemize{\list{\relax}%
  483.     {\leftmargin=1em
  484.      \rightmargin=0em
  485.      \labelwidth=.5em
  486.      \labelsep=.5em
  487.      \def\makelabel##1{\hss\llap{##1}}}}
  488. \let\endccitemize =\endlist
  489.  
  490. %
  491. % modifications to enumerate env.
  492. %
  493. \def\labelenumi{\theenumi.}
  494.     \def\theenumi{\arabic{enumi}}
  495. \def\labelenumii{\theenumi.\theenumii.}
  496.     \def\theenumii{\arabic{enumii}}
  497.     \def\p@enumii{\theenumi.}
  498. \def\labelenumiii{\theenumi.\theenumii.\theenumiii.}
  499.     \def\theenumiii{\arabic{enumiii}}
  500.     \def\p@enumiii{\theenumi.\theenumii.}
  501. \def\labelenumiv{\theenumi.\theenumii.\theenumiii.\theenumiv.}
  502.     \def\theenumiv{\arabic{enumiv}}
  503.     \def\p@enumiv{\theenumi.\theenumii.\theenumiii.}
  504.  
  505. \def\enumerate{\ifnum \@enumdepth >3 \@toodeep\else
  506.       \advance\@enumdepth \@ne
  507.       \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
  508.       {\csname label\@enumctr\endcsname}{\usecounter{\@enumctr}
  509.       \labelsep =  .2em
  510.       \ifnum \@enumdepth = 1
  511.              \labelwidth = 1em
  512.          \leftmargin=\leftskip
  513.          \advance\leftmargin1.8em
  514.       \else \ifnum \@enumdepth = 2
  515.                    \labelwidth = 1.6em
  516.                    \leftmargin = 1.8em  %\leftmargin = \labelwidth+\labelsep
  517.             \else \ifnum \@enumdepth = 3
  518.                          \labelwidth = 2.4em
  519.                          \leftmargin = 2.6em
  520.                   \else
  521.                          \labelwidth = 3.2em
  522.                          \leftmargin = 3.4em
  523.                   \fi
  524.             \fi
  525.       \fi
  526.       \def\makelabel##1{\rlap{##1}\hss}}\fi}
  527.  
  528. %
  529. % Font sizes
  530. %
  531. \def\Hugesize{\Huge}   % in art12.sty, \Huge = \huge
  532. \def\Largesize{\huge}  % in art11.sty, \Huge > \huge
  533. \def\Normalsize{\LARGE}
  534. \def\Smallsize{\Large}
  535.  
  536. \def\contsize{\LARGE}
  537. \def\contsizesize{\Large}
  538. \def\smallcontentsfonts{%
  539.     \def\contsize{\Large}
  540.     \def\contsizesize{\large}}
  541.  
  542. \def\smallerfonts{%
  543.     \def\Hugesize{\huge}
  544.     \def\Largesize{\LARGE}
  545.     \def\Normalsize{\Large}
  546.     \def\Smallsize{\large}
  547.     \def\contsize{\Large}
  548.     \def\contsizesize{\large}
  549.     \def\smallcontentsfonts{%
  550.         \def\contsize{\large}
  551.         \def\contsizesize{\normalsize}}%
  552.     }
  553. %
  554. % modifications to document env.
  555. %
  556.  
  557. \let\@@@@document\document
  558. \def\document{\@@@@document
  559.     \Normalsize}
  560. \let\@@end@@document\enddocument
  561. \def\enddocument{%
  562. \if@filesw \newwrite\tf@toc
  563.   \immediate\openout\tf@toc=\jobname.toc
  564.   \typeout{Writing toc file \jobname.toc}\fi
  565.     \@@end@@document}
  566.  
  567. %
  568. % slide environment
  569. %
  570. \newdimen\defaultskip
  571. \def\slide{\@ifnextchar[{\@@Slide}{\@Slide}}
  572. \def\@Slide{\@@Slide[0pt]}
  573. \def\@@Slide[#1]{\slide@begin@vspace
  574.            \begingroup
  575.        \advance\leftskip\defaultskip
  576.        \advance\rightskip\defaultskip
  577.        \advance\leftskip#1
  578.        \advance\rightskip#1
  579.            \advance\leftmargini\leftskip}
  580. \def\endslide{\par\endgroup
  581.               \slide@end@vspace
  582.               \clearpage}
  583.  
  584. %
  585. % Page vertical spacing types
  586. %
  587. \def\vertcenter{%
  588.     \def\subsec@begin@vspace{\vspace*{\fill}}
  589.     \def\subsec@end@vspace{\vspace*{\fill}}
  590.     \def\slide@begin@vspace{\vspace*{\fill}}
  591.     \def\slide@end@vspace{\vspace*{\fill}}%
  592.     }
  593. \def\vertgroup{%
  594.     \def\subsec@begin@vspace{\relax}
  595.     \def\subsec@end@vspace{\vspace*{2em}}
  596.     \def\slide@begin@vspace{\vspace*{\fill}}
  597.     \def\slide@end@vspace{\vspace*{\fill}}%
  598.     }
  599. \def\verttop{%
  600.     \def\subsec@begin@vspace{\relax}
  601.     \def\subsec@end@vspace{\vspace*{2em}}
  602.     \def\slide@begin@vspace{\relax}
  603.     \def\slide@end@vspace{\relax}%
  604.     }
  605.  
  606. %
  607. % Page Frame Definitions
  608. %
  609. \def\doubleboxframe{%
  610.     \def\my@frame##1{%
  611.         \@my@box@frame{.4em}{.3em}{.3em}%
  612.     {\@my@box@frame{1.6pt}{.8em}{.8em}{##1}}}}
  613.  
  614. \def\shadowframe{%
  615.     \def\my@frame##1{%
  616.         \@my@shadow@box@frame{1.6pt}{3.2pt}{.8em}{.8em}{##1}}}
  617.  
  618. \def\ovalframe{%
  619.  \def\my@frame##1{\@my@oval@frame{\thicklines}{.4em}{.3em}{##1}}}
  620.  
  621. %
  622. % Subsection frames
  623. %
  624. \def\boxsecframe{\def\sub@section@frame##1{\Fbox{3pt}{1pt}{##1}}}
  625. \def\shadowsecframe{\def\sub@section@frame##1{\SFbox{3pt}{1pt}{2pt}{##1}}}
  626.  
  627. %
  628. % defaults
  629. %
  630. % slide head and foot
  631. \lhead{\slidetitle}
  632. \chead{\relax}   % empty
  633. \rhead{\sectiontitle}
  634. \lfoot{\slideauthor}
  635. \cfoot{\relax}   % empty
  636. \rfoot{\thepage}
  637.  
  638. %
  639. \defaultskip=1em
  640. %
  641. \pagestyle{slide}
  642.  
  643. % \portrait vs. \landspace
  644. \portrait
  645.  
  646. % no parindent
  647. \parindent 0pt
  648.  
  649. % \vertcenter vs. \verttop
  650. \vertcenter   % vertical centering
  651.  
  652. % \doubleboxframe vs. \shadowframe vs. \ovalframe
  653. \shadowframe
  654.  
  655. % \boxsecframe vs. \shadowsecframe
  656. \shadowsecframe
  657.  
  658. % hyphenation off. Comment the following line if you want hyphenation on
  659. \pretolerance=10000
  660.  
  661. % right-justification off
  662. % Comment the following two lines if you want right-justification on
  663. \@rightskip\@flushglue
  664. \rightskip\@rightskip
  665.  
  666. %
  667. % use pointing hand
  668. %
  669. %\font\handsfont=hands scaled\magstep5
  670. %\def\handright{{\handsfont \char"41}}
  671. %\def\handleft{{\handsfont \char"42}}
  672. %\def\mysecpointer{\mbox{\handright}\,}
  673. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  674. %% hands fonts
  675. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  676. %%
  677. %%Do ftp login:
  678. %%
  679. %%    anonymous@ymir.claremont.edu
  680. %%
  681. %%Go to the directory of hands.dir:
  682. %%
  683. %%    cd tex
  684. %%    cd mf
  685. %%    cd hands
  686. %%
  687. %%Get all files:
  688. %%
  689. %%    mget *
  690. %%
  691. %%Modifications to hands.mf
  692. %%^^^^^^^^^^^^^^^^^^^^^^^^^
  693. %%   ... ...
  694. %%   size=10pt#;
  695. %%   ... ...
  696. %%   thinline#:=6/100em#;
  697. %%
  698. %%Run metafont on hands.mf with magnification of:
  699. %%
  700. %%    1.2**5
  701. %%
  702. %%which is used in lslide.sty
  703. %%Probably, you may want to generate hands fonts with
  704. %%all magnifications:
  705. %%
  706. %%    1, root(1.2), 1.2, 1.2**2, 1.2**3, 1.2**4, 1.2**5
  707. %%
  708.